package
{
	import flash.display.MovieClip;
	import flash.events.Event;
	
	public class panou2 extends MovieClip
	{
		var bGround : backGround = new backGround();
		var Grafic : graficTrigonometrie = new graficTrigonometrie();
		
		public var sin : myText = new myText("dynamic");
		var cos : myText = new myText("dynamic");
		var tg : myText = new myText("dynamic");
		var ctg : myText = new myText("dynamic");
		
		public function panou2()
		{
			this.addEventListener(Event.ADDED_TO_STAGE,initializare);
		}
		
		private function initializare(e:Event):void
		{	
			pozitioneazaObiecte();
			
			this.addChild(bGround);
			this.addChild(Grafic);
			
			this.addChild(sin);
			this.addChild(cos);
			this.addChild(tg);
			this.addChild(ctg);
		}
		
		private function pozitioneazaObiecte():void
		{
			bGround.y=30;
			
			Grafic.x=10;
			Grafic.y=40;
			
			sin.x = Grafic.x+Grafic.width+20;
			sin.y = Grafic.y+40;
			sin.width = 100;
			sin.height =20;
			
			cos.x = sin.x;
			cos.y = sin.y+sin.height+20;
			cos.width = 100;
			cos.height = 20;
			
			tg.x = sin.x;
			tg.y = cos.y+cos.height+20;
			tg.width = 100;
			tg.height = 20;
			
			ctg.x = sin.x;
			ctg.y = tg.y+tg.height+20;
			ctg.width = 100;
			ctg.height = 20;
			Grafic.transmite(sin,cos,tg,ctg);
		}
	}
}